<script setup lang="js">
import { ref } from 'vue';
import IfShow from './IfShow.vue';
let name='张三';
let name2=ref("张宁");

let login=()=>{
  alert(name2.value);
}
</script>

<template>
  <h1>你好{{ name2 }}</h1>
  <input v-model="name2"></input>
  <input :value="name2"></input>

  <button @click="login">登录</button>
  <button v-on:click="login">登录1</button><br>
  <ifShow></ifShow>
</template>

<style scoped></style>
